<?php

global $images_meta_key,$query,$wpdb;
$curr_post_ID = $wp_query->post->ID;

	$sql = 'SELECT * FROM wp_postmeta WHERE post_id = ' . $curr_post_ID;
	$data = $wpdb->get_results($sql);
	foreach ($data as $entry){
$postData = $data[0]->meta-key;
	echo $postData;
	}

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<h1 class="entry-title"><?php the_title(); ?></h1>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
	</div><!-- .entry-content -->

	<footer class="entry-meta">
	  <div id="sendmail" class="sendmail"></div>
	</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
